package net.huashitong.ssydt.common.entity.vo;


import net.huashitong.ssydt.common.entity.SsCommonYearScore;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2018.02.05
 */
public class YearScoreVO implements Serializable {

    private static final long serialVersionUID = 3083769121166529712L;

    private Integer questionNumber;//答题数

    private Integer correctNumber;//正确数

    private Integer bestNumber;//最多答题数

    private String bestDate;//最多答题日期

    private BigDecimal myCorrectRate;//我的正确率

    private Integer ranking;//我的排名

    private String nickname;


    public YearScoreVO(SsCommonYearScore ssCommonYearScore) {
        this.questionNumber = ssCommonYearScore.getQuestionNumber();
        this.correctNumber = ssCommonYearScore.getCorrectNumber();
        this.bestNumber = ssCommonYearScore.getBestNumber();
        this.bestDate = ssCommonYearScore.getBestDate();
        this.myCorrectRate = ssCommonYearScore.getMyCorrectRate();
        this.ranking = ssCommonYearScore.getRanking();
    }

    public Integer getQuestionNumber() {
        return questionNumber;
    }

    public void setQuestionNumber(Integer questionNumber) {
        this.questionNumber = questionNumber;
    }

    public Integer getCorrectNumber() {
        return correctNumber;
    }

    public void setCorrectNumber(Integer correctNumber) {
        this.correctNumber = correctNumber;
    }

    public Integer getBestNumber() {
        return bestNumber;
    }

    public void setBestNumber(Integer bestNumber) {
        this.bestNumber = bestNumber;
    }

    public String getBestDate() {
        return bestDate;
    }

    public void setBestDate(String bestDate) {
        this.bestDate = bestDate;
    }

    public BigDecimal getMyCorrectRate() {
        return myCorrectRate;
    }

    public void setMyCorrectRate(BigDecimal myCorrectRate) {
        this.myCorrectRate = myCorrectRate;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
